<?php
require_once('header.php');
?>
<table class="columns">
  <tbody><tr>
    <td class="left">
<div class="box">
<div class="body">
<?php current_sub_menu_list('li_selected_class=selected'); ?>
</div>
</div>
	</td>
    <td class="main">
    <h3><?php get_diagram_title_dynamic(); ?></h3>
<br>
<?php
$url = url_get(0);
diagram_content($url);
$page = (int)url_get(1);
$results = get_all_guestbook($page, 'checked', '/' . $url. '/');
if (!empty($results->results)) {
    foreach($results->results as $post) {
?>
<div class="comment" style="margin-left: 0em;">
                
                <h3><?php echo $post->title; ?></h3>
                <div class="documentByLine">
                    <?php echo $post->username; ?> 发表于 <?php echo $post->post_time; ?>
                </div>
                <div class="commentBody"><?php echo $post->content; ?></div>
</div>
<?php
    }
} else {
    echo '暂无任何留言记录.';
}
?>
<div class="pagelink"><?php echo $results->pagelink; ?></div>

	</td>
  </tr>
</tbody></table>
<?php require_once('footer.php'); ?>
